const path = require('path')

module.exports = {
    chainWebpack: config => {
        config.resolve.alias.set('@',path.join(__dirname,'./src'))
    },
    lintOnSave: false,
    // devServer: {

    // },
    css: {
        loaderOptions: {
            postcss: {
                plugins: [
                    // 设计稿宽度的1/10，一般为75
                    require('postcss-px2rem')({
                        remUnit: 37.5
                    }),
                ]
            }
        }
    }
}